<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">奖励金额使用情况</h1>
</div>
<div class="panel panel-default">
  <div class="panel-body">
    <div class="col-lg-4">
      <div class="input-group" >
        <div class="input-group-btn" >
          <span class="btn btn-default">申报企业</span>
        </div>
        <ui-select ng-model="searchform.code" theme="bootstrap">
          <ui-select-match placeholder="请选择机构..">{{$select.selected.company_name}}</ui-select-match>
          <ui-select-choices repeat="item.company_code as item in searchform.company_list | filter: $select.search">
            <span ng-bind-html="item.company_name | highlight: $select.search"></span>
          </ui-select-choices>
        </ui-select>
      </div>
    </div>
    <div class="col-lg-2">
      <button class="btn btn-success" ng-click="search(1)">立即搜索</button>
    </div>
    <div class="col-lg-5 pull-right">
      <h4 class="control-label">预计使用：{{policy.use_subsidy / 100 | currency : '￥'}} / 总额：{{policy.subsidy_total / 100 | currency : '￥'}}</h4>
    </div>
  </div>

  <div class="panel-body">

    <!-- 网络太差, 画圈等 -->
    <h3 class="col-sm-12 text-center" ng-show="searchform.loading">
      <i class="fa fa-spin fa-spinner hide show inline"></i>
    </h3>

    <table class="table table-striped table-bordered" ng-show="!searchform.loading">
      <thead>
        <tr>
          <th class="col-md-1 text-center">企业名称</th>
          <th class="col-md-1 text-center">企业编号</th>
          <th class="col-md-1 text-center">招徕人数</th>
          <th class="col-md-1 text-center">预计金额</th>
          <th class="col-md-1 text-center">发放状态</th>
          <th class="col-md-1 text-center"></th>
      </thead>
      <tbody>
        <tr ng-repeat="info in subsidy_list">
          <td>{{info.company_name}}</td>
          <td class="text-center">{{info.company_code}}</td>
          <td class="text-center">{{info.domestic_one + info.domestic_more + info.foreigner_one + info.foreigner_more}}</td>
          <td class="text-center">{{info.money / 100 | currency : '￥'}}</td>
          <td class="text-center">{{info.issue_status == '1' ? '已发放' : '未发放'}}</td>
          <td class="text-center">
            <button type="button" class="btn btn-info btn-xs" ng-click="getInfo(info)">详细</button>
          </td>
        </tr>
      </tbody>
    </table>
  </div>

</div>
